package com.hmsm.server.util;

import org.apache.log4j.Logger;

/**
 * 
 *  @描述:日志记录公共类
 *  @作者:yaosq
 *  @创建日期:2014-4-1 下午03:35:56  
 *
 */
public class Log {

	private static final Logger log = Logger.getLogger(Log.class);

	public static boolean log(Object obj, String message) {
		log.info("<<" + obj.getClass() + ":" + message + ">>");
		return true;
	}

	public static boolean logError(Object obj, String message) {
		log.error("<<" + obj.getClass() + ":" + message + ">>");
		return true;
	}

}
